# -*- coding:utf-8 -*-
__project__ = '远端库'
__file_name__ = '第六次课程作业'
__author__ = "tcf"
__date__ = "2020/11/13 11:03"
__product_name = 'PyCharm'
# @FileName :第六次课程作业.py
# code is far away from bugs with the god animal protecting



# 1.用任意编程语言循环输出整数0到10

# for i in range(0, 11):
#     print(i)
#     i += 1

# i = 0
# while i < 11:
#     print(i)
#     i += 1



# 2.用任意语言实现逆序输出一个字符串，比如[欢乐逛欢迎您]，输出[您迎欢逛乐欢]

# list = ['欢乐逛欢迎您']
# str = list[0][::-1]
# print(str)   # 您迎欢逛乐欢
# list1 = str.split()
# print(list1)   # ['您迎欢逛乐欢']



# list = ['欢乐逛欢迎您']
# str = ''.join(list)
# print(str)   # 欢乐逛欢迎您
# str1 = str[::-1]
# print(str1)  # 您迎欢逛乐欢
# list1 = str1.split()
# print(list1)  # ['您迎欢逛乐欢']




# 3.str = 'a,hello' 在字符串str中查找hello；
# str = 'a,hello'
# str1 = str.index(',')    # 1
# str2 = str.rindex('hello')  # 2
# str3 = str.find('hello')  # 2
# str4 = str.rfind('hello')  # 2
# str5 = str.count('hello') # 1
# print(str1, str2, str3, str4, str5)



# 4.str = 'a,b,c,d' 用逗号分割str字符串，并保存到列表
# str = 'a,b,c,d'
# str1 = str.split(',')
# print(str1)  # ['a', 'b', 'c', 'd']



# 5.将“笔试题 123A”中的123替换为“进行中”；
# str = '笔试题 123A'
# str1 = str.replace('123A', '进行中')
# print(str1)   # 笔试题 进行中





if __name__ == "__main__":
    TheApp = 0